#!/bin/sh

if [ "$1" == "install" ]; then
  gconftool-2 -s -t string /system/osso/connectivity/IAP/GPRSv6/type GPRSv6
  gconftool-2 -s -t string /system/osso/connectivity/IAP/GPRSv6/name "GPRS ipv6"
elif [ "$1" == "deinstall" ]; then
  gconftool-2 --recursive-unset /system/osso/connectivity/IAP/GPRSv6
elif [ "$1" == "remove-old" ]; then
  gconftool-2 --recursive-unset /system/osso/connectivity/IAP/DUMMY
  mkdir /etc/network/archive
  mv /etc/network/if-up.d/00_dummy_up /etc/network/if-down.d/00_dummy_down /etc/network/archive
elif [ "$1" == "set_apn" ]; then
  gconftool-2 -s -t boolean /system/osso/connectivity/IAP/GPRSv6/use_apn true
else
  echo $0 requires one argument: "install" or "deinstall"
fi
